/* __auth__ : KunLin */
package com.cskaoyan.controller.wx;


import com.cskaoyan.bean.BrandListBO;
import com.cskaoyan.bean.BrandVO;
import com.cskaoyan.bean.vo.brand.WXBrandDetailVO;
import com.cskaoyan.bean.vo.brand.WXBrandListVO;
import com.cskaoyan.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("wx/brand")
@RestController
public class BrandController {


    @Autowired
    BrandService brandService;

    @GetMapping("/detail")
    public WXBrandDetailVO detail(Integer id){
        return brandService.queryBrandDetailById(id);
    }

    @GetMapping("list")
    public WXBrandListVO list(BrandListBO brandListBO) {
        return brandService.queryBrandList(brandListBO);
    }
}
